package com.databing.demo.basics.util

import android.view.View
import androidx.databinding.BindingConversion

object ObserableConverters {
    @BindingConversion
    @JvmStatic
    fun booleanToVisibility(isNotVisible: Boolean) = if (isNotVisible) View.GONE else View.VISIBLE
}

object ConvertersUtil {
    @JvmStatic
    fun isZero(number: Int) = number == 0
}